<script type="text/javascript">
$(function(){
//	$.get("inventorymanagement/getFilesInfo",getResponseFilesInfo,"json");
	$.get("applicationSingle/getCardInfo",function(data){
		var contentb="<option value='' selected>请选择</option>";
		var i;
		$(data).each(function(n,item){
			for(i=0;i<item.cdProDefinitions.length;i++){
				
				contentb+="<option value="+item.cdProDefinitions[i].cardpCode+">"
				+item.cdProDefinitions[i].cardpName+"</option>"
			}
			$("#cardPNameByRequestReg").html(contentb);
		});
	},"json");
	
	
	$.post("inventorymanagement/getUserAndBanch",function(json){
		var activeUser = json.activeUser;
		var branchNo=activeUser.branchNo;
		var branchName=activeUser.branchName;
	//	$("select[name='branchNameByRequestReg']").val(branchName);
	//	$("input[name='branchNoByRequestReg']").val(branchNo);
		if(branchNo!="10000000"){
			var contentb="";
			contentb+="<option value="+branchNo+">"
			+branchName+"</option>";
			$("select[name='branchNameByRequestReg']").html(contentb);
		}
		if(branchNo=="10000000"){
			$.post("tellerManage/getpaperAndBranch",function(json){
				 var contentb="<option value='' >请选择</option>";
				 $(json).each(function(n,item){
					for(i=0;i<item.branchs.length;i++){
						contentb+="<option value="+item.branchs[i].orgNo+">"
						+item.branchs[i].orgName+"</option>"
					};
					$("select[name='branchNameByRequestReg']").html(contentb);
				 });
			},"json");
		}
		$.post("inventoryQueryOfRequestAndReturnReg/getRequestAndReturnInfo",{"branchNoByRequestReg":branchNo},getRequestAndReturnInfo,"json");
	});
	
	
});
</script>	

<div class="pageHeader ">
	<form id="pagerForm" method="post" action="inventoryQueryOfRequestAndReturnReg/getRequestAndReturnInfo" class="pageForm required-validate" onsubmit="return validateCallback(this,getRequestAndReturnInfo);">
		<input type="hidden" name="pageNum" value="" /> 
		<input type="hidden" name="numPerPage" value="" />
		<input name="branchNoByRequestReg" type="hidden" value="">
		<div class="searchBar">	
		<div class="row" style="padding: 0 10px;">
				<div class="col-md-6 col-sm-12">
					<p>
						<label>网点名称：</label>
						<select id="branchNameByRequestReg" name="branchNameByRequestReg" ></select>
					</p>
				</div>
				<div class="col-md-6 col-sm-12">
					<p>
						<label>卡产品：</label>
						<select id="cardPNameByRequestReg" name="cardPNameByRequestReg" ></select>
					</p>
				</div>
		</div>
		<div class="row" style="padding: 0 10px;">
				<div class="col-md-6 col-sm-12">
					<p>
						<label>领用/归还：</label>
						<select id="requestOrReturnByRequestReg" name="requestOrReturnByRequestReg" >
							<option value="">请选择</option>
							<option value="1">领用</option>
							<option value="2">归还</option>
						</select>
					</p>
				</div>
				<div class="col-md-6 col-sm-12">
					<p>
						<label>员工编号：</label>
						<input id="empNoByRequestReg" name="empNoByRequestReg" class="validUserNo" />
					</p>
				</div>
		</div>
		<div class="row" style="padding: 0 10px;">
				<div class="col-md-6 col-sm-12">
					<p>
						<label>日期(起)：</label>
						<input id="storageDateFromByRequestReg" name="storageDateFromByRequestReg" class="date validDateFrom" />
					</p>
				</div>
				<div class="col-md-6 col-sm-12">
					<p>
						<label>日期(止)：</label>
						<input id="storageDateToByRequestReg" name="storageDateToByRequestReg" class="date validDateTo"/>
					</p>
				</div>
		</div>
		<div class="subBar">
			<ul> 
				<li>
				<div class="buttonActive" ><div class="buttonContent" ><button type="submit">查询</button></div></div>
				</li>
			</ul>
		</div>
		</div>
	</form>	
</div>
<div class="pageContent">
<form method="post" action="" class="pageForm required-validate" onsubmit="return validateCallback(this,printViewPageAjaxDone);" >
<div class="panelBar">
	<ul class="toolBar">
		<li><a id="printTable" class="add" onclick="printTableInfo(this);" url="queryRequestAndReturnInfoByEmp" name="柜员领用归还记录查询"><span>打印预览</span></a></li>
	</ul>
</div>
<div id="queryRequestAndReturnInfoByEmp">
		<table class="table" width="880" height="100">
			<thead>
				<tr>
					<th width="4%" align="center">序号</th>
					<th width="10%" align="center">网点</th>
					<th width="8%" align="center">出入库单号</th>
					<th width="10%" align="center">出入库描述</th>
					<th width="8%" align="center">日期</th>
					<th width="10%" align="center">卡产品</th>
					<th width="4%" align="center">数量</th>
					<th width="5%" align="center">柜员编号</th>
					<th width="10%" align="center">柜员姓名</th>              
				</tr>
			</thead>
			<tbody id="queryRequestAndReturnTable">
			</tbody>
		</table>
</div>
</form>
</div>

	



